<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/18 0018
 * Time: 上午 10:05
 */
namespace app\admin\model;
use think\Model;
class Rider extends Model {
    protected $autoWriteTimestamp = true;
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';
    protected $insert=[
        'status'=>1,
    ];
    protected function setPasswordAttr($value)
    {
        if($value){
            return md5($value);
        }else{
            return false;
        }
    }
}